package com.woniuxy.mapper;

import com.woniuxy.entity.AllShop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author hq
 * @Date 2025/7/22$ 16:45$
 * @Description TODO
 * @Params $
 * @Return $
 **/
@Mapper
public interface ShopMapper {
    List<AllShop> search(String keyword);
    @Select("select * from all_shop where id=#{shopId}")
    AllShop selectById(Integer shopId);

    List<AllShop> getProductsByPriceRange(Integer minPrice, Integer maxPrice);
}
